
package system.base;

import framework.core.*;

/*
	Author    :Benny
	CreateTime:2008-05-13 14:42:07
*/
public class StorageMonthOutSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_balance_time = "" ; // all

	private String m_category_code = "" ; // all

	private double m_product_money = Value.NULL_DOUBLE ; // all
		

public StorageMonthOutSearchEvent() 
{
	super();
	
	setOrderField(StorageMonthOut.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getBalanceTime()
	{
		return m_balance_time ;
	}
	public void setBalanceTime(String v)
	{
		m_balance_time = v;
	}

	public String getCategoryCode()
	{
		return m_category_code ;
	}
	public void setCategoryCode(String v)
	{
		m_category_code = v;
	}

	public double getProductMoney()
	{
		return m_product_money ;
	}
	public void setProductMoney(double v)
	{
		m_product_money = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewBalanceTime() throws Exception
	{
		return Value.view(getBalanceTime());
	}

	public String viewCategoryCode() throws Exception
	{
		return Value.view(getCategoryCode());
	}

	public String viewProductMoney() throws Exception
	{
		return Value.view(getProductMoney());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(StorageMonthOut.ID,getId()));

	c.add(getCondition(StorageMonthOut.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(StorageMonthOut.BALANCE_TIME,getBalanceTime()));

	c.add(getCondition(StorageMonthOut.CATEGORY_CODE,getCategoryCode()));

	c.add(getCondition(StorageMonthOut.PRODUCT_MONEY,getProductMoney()));
		

			
		return c ;
	}
	
//add by Benny start

//add by Benny end
}
